package org.jeecg.modules.demo.weixin.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @Description: 用户余额记录表
 * @Author: jeecg-boot
 * @Date:   2023-11-11
 * @Version: V1.0
 */
@Data
@TableName("smt_value_record")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="smt_value_record对象", description="用户余额记录表")
public class SmtValueRecord implements Serializable {
    private static final long serialVersionUID = 1L;

	/**主键id*/
	@TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "主键id")
    private Integer id;

    /**用户id*/
    @Excel(name = "用户id", width = 15)
    @ApiModelProperty(value = "用户id")
    private Integer userId;
	/**用户消费赠送金额*/
	@Excel(name = "用户消费赠送金额", width = 15)
    @ApiModelProperty(value = "用户消费赠送金额")
    private BigDecimal valueGivePrice;
	/**用户消费本金*/
	@Excel(name = "用户消费本金", width = 15)
    @ApiModelProperty(value = "用户消费本金")
    private BigDecimal valuePrice;
	/**用户支付金额*/
	@Excel(name = "用户支付金额", width = 15)
    @ApiModelProperty(value = "用户支付金额")
    private BigDecimal price;
	/**用户退还本金*/
	@Excel(name = "用户退还本金", width = 15)
    @ApiModelProperty(value = "用户退还本金")
    private BigDecimal refudValuePrice;
	/**退款金额*/
	@Excel(name = "退款金额", width = 15)
    @ApiModelProperty(value = "退款金额")
    private BigDecimal refundPrice;
	/**退还赠送金额*/
	@Excel(name = "退还赠送金额", width = 15)
    @ApiModelProperty(value = "退还赠送金额")
    private BigDecimal refundGivePrice;
	/**状态（0 充值 1 退款）*/
	@Excel(name = "状态（0 充值 1 退款）", width = 15)
    @ApiModelProperty(value = "状态（0 充值 1 退款）")
    private Integer status;
	/**创建时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;
	/**更改时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更改时间")
    private Date updateTime;

    /**订单卡编号*/
    @Excel(name = "订单卡编号", width = 15)
    @ApiModelProperty(value = "订单卡编号")
    private String orderNo;
}
